﻿namespace ImapComponent.Net.Mail.Imap4
{
    /// <summary>
    /// Provides the proxy server information.
    /// </summary>
    public class Proxy
    {
        #region Fields

        private string host;
        private int port;
        private string accountName;
        private string password;

        #endregion // Fields

        #region Constructors

        /// <summary>
        /// Initializes a new instance of the Proxy class.
        /// </summary>
        public Proxy()
        {
        }

        #endregion // Constructors

        #region Properties

        /// <summary>
        /// Gets or sets the host's IP address or domain name.
        /// </summary>
        public string Host
        {
            get
            {
                return this.host;
            }

            set
            {
                if (this.host != value)
                {
                    this.host = value;
                }
            }
        }

        /// <summary>
        /// Gets or sets the number of port on which to communicate with the server.
        /// </summary>
        public int Port
        {
            get
            {
                return this.port;
            }

            set
            {
                if (this.port != value)
                {
                    this.port = value;
                }
            }
        }

        /// <summary>
        /// Gets or sets the account name on the server.
        /// </summary>
        public string AccountName
        {
            get
            {
                return this.accountName;
            }

            set
            {
                if (this.accountName != value)
                {
                    this.accountName = value;
                }
            }
        }

        /// <summary>
        /// Gets or sets the password of the account name on the server.
        /// </summary>
        public string Password
        {
            get
            {
                return this.password;
            }

            set
            {
                if (this.password != value)
                {
                    this.password = value;
                }
            }
        }

        #endregion // Properties
    }
}
